<?php

namespace app\admin\model\information;
use think\Model;

/*
 * 收发类别
 *   */
class U8rdstyle extends Model
{
    protected $connection = "database.sec";
    protected $table = "Rd_Style";
    
    //0发  1入
    public static function getList($bRdFlag = 0){
        $rows = self::where([
            'bRdFlag' => $bRdFlag
        ])
        ->field('cRdCode,cRdName')
        ->select();
        $arr = ['请选择出库类型'];
        if($rows){
            foreach ($rows as $row){
                $arr[$row->cRdCode] = $row->cRdName;
            }
        }
        return $arr;
    }
}
